package cn.hxlc.tie.demo.modular.ljt.equipment.mapper;


import cn.hxlc.tie.demo.modular.ljt.equipment.entity.EquipmentCategory;
import cn.hxlc.tie.demo.modular.ljt.equipment.model.params.EquipmentGroupParam;
import cn.hxlc.tie.demo.modular.ljt.equipment.model.result.EquipmentGroupResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface EquipmentCategoryMapper_lt extends BaseMapper<EquipmentCategory> {

    /**
     * 所有类别
     */
    List<EquipmentCategory> selectTree();
    /**
     * 分组 分页
     */
    IPage<EquipmentGroupResult> customPageList(@Param("page") Page page,@Param("param") EquipmentGroupParam param);

    /**
     * 分组 编辑
     */
    Integer update(EquipmentGroupParam param);
}
